package sp.whereru;

import java.util.ArrayList;

import XMLread.Building;
import XMLread.BuildingCSV;
import XMLread.Space;
import android.app.Application;
import android.util.SparseArray;

public class MyApplication extends Application {

	private ArrayList<Building> buildings;
	private ArrayList<BuildingCSV> newBuildings;
	private SparseArray<ArrayList<Space>> spaces;
	private Loc[] userLocation;

	public ArrayList<Building> getOldBuildings() {
		return buildings;
	}

	//TODO old building data, needs to be deleted when new building data works
	public void setSomeVariable(ArrayList<Building> buildings) {
		this.buildings = buildings;
	}
	
	public void setBuildings(ArrayList<BuildingCSV> buildings) {
		this.newBuildings = buildings;
	}
	
	public ArrayList<BuildingCSV> getBuildings() {
		return newBuildings;
	}
	
	public void setSpaces(SparseArray<ArrayList<Space>> spaces) {
		this.spaces = spaces;
	}
	
	public SparseArray<ArrayList<Space>> getSpaces() {
		return this.spaces;
	}
	
	public Loc[] getUserLocation() {
		return userLocation;
	}

	public void setUserLocation(Loc[] loc) {
		this.userLocation = loc;
	}
}
